package com.hui.service;

import com.github.pagehelper.PageInfo;
import com.hui.entity.PromotionAd;
import com.hui.entity.PromotionAdVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 李昭辉
 * @Date: 2021/08/06/17:39
 * @Description:
 */
public interface PromotionAdService {
    // 分页获取广告信息
    PageInfo<PromotionAd> getAllPromotionAd(PromotionAdVo promotionAdVo);

    // 添加广告
    void savePromotionAd(PromotionAd promotionAd);

    // 修改广告
    void updatePromotionAd(PromotionAd promotionAd);

    // 修改广告状态上下线
    void updateStatus(int id, int status);

    // 回显广告信息
    PromotionAd getPromotionAdById(int id);
}
